package com.lupan.passwordbox.service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.lupan.passwordbox.dao.AccountMapper;
import com.lupan.passwordbox.domain.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/8/18 15:02
 */
@Service
public class AccountService extends ServiceImpl<AccountMapper,Account> {

    @Autowired
    private AccountMapper accountMapper;

    public Account get(long id) {
        return new Account();
    }

    public List<Account> get(String username, String password) {
        return new ArrayList<Account>();
    }

    public void add(Account account) {
        accountMapper.insert(account);
    }
}
